<?php

class Computer{
    const PI=3.1242;
    
    

    
     
  
    
    
    
/*     
    function __set($_key,$_value) {
        
        $this->$_key = $_value;
        
    }
    
    //所有字段的取值都在这里进行 
    function __get($_key) {
    
    return $this->$_key;
    
} */
    public function __set($K,$V){
        self::$count++;
     
        $this->$K=$V;
    }
    
   public function __get($K){
       
       self::$count++;
       
        return $this->$K;
    }
    private function pp(){
        
    }
    
    
}

$cputer=new Computer();


$cputer->ppp="呜呜呜呜";
print("<br/>");
print($cputer->ppp);

print("<br/>".Computer::$count);

print("<br/>");
print($cputer instanceof Computer);

?>

  <?php /* print("<br/>hangn") */?>  



